package ZY11_09;

import java.util.Scanner;

public class Mingming1 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入作业名称：");
        String name=in.next();
        boolean s=name.matches("[\\u4e00-\\u9fa5]+.rar");
        boolean s1=name.matches("[\\u4e00-\\u9fa5]+.zip");
        if (s || s1) {
            System.out.println("格式正确");
        }else {
            System.out.println("格式错误");
        }
    }
}
